< previous page page_119 next page >

Page 119
Caution
The Template Manager has a problem. If you're using the version that comes with Visual Basic and try to add control templates to your form, it won't work correctly or at all and you'll get an error message.
If you choose to install the Template Manager upgrade from the Visual Basic user's Web site (http://www.microsoft.com/vstudio/owner), adding control templates will work correctly, but when you add a menu item, you'll fget only the top-level added to the form. However, all code for the It's up to you which version of the Template Manager you would prefer working with. If you want to work with menu templates more than control templates, keep the original program file. However, if you want to use control templates more, upgrade the manager to the newer version.subitems will be added.

Adding Additional Templates..
To create your own templates for the Template Manager, create a form or module with just the objects that you want in the template and save it to one of the following three directories:
\TEMPLATE\CODE
\TEMPLATE\MENUS
\TEMPLATE\CONTROLS
Also, the Template Manager supports wizard files (.VBZ), so you can place any wizards you want into the appropriate directory for the Template Manager to start up.
Summary
Today, you've seen what it takes to create toolbars and menus that you can use in your application to provide your users with a quick and easy way of accessing the application's functions and features. Also, you saw how to create pop-up menus that can be used as needed at the precise area in the application that they relate to. Finally, this lesson showed how to use templates to provide a way of reusing forms, code, controls, and menus that have been previously designed and saved. This way, you can create multiple applications with a consistent look to them.

 
< previous page page_119 next page >

If you like this book, buy it!